#include<iostream>
#include<unistd.h>
#include <errno.h> 

using namespace std;

int main()
{
    int pipefd[2]={0};
    int n = pipe(pipefd);
    if(n == -1)
    {
        perror("pipe");
        return -1;
    }

    cout<<pipefd[0]<<" "<<pipefd[1]<<endl;
    return 0;
}